<style type="text/css">
    .uploadify-button {
        left: 0;
        width: 85px;
        height: 28px;
        background-repeat: no-repeat;
        border: none;
        padding: 0;
    }

    .uploadify:hover .uploadify-button {
        background-repeat: no-repeat;
        width: 85px;
        height: 28px;
    }

    .fileQueue {
        background-color: #F4F9FF;
        height: 88px;
        overflow: auto;
        width: 70%;
    }
</style>
<script type="text/javascript" src="${base}/scripts/sfgl/tpfk_content.js"></script>

<form id="form_tpfk" action="${base}/sfgl/tpfk/tpfk" method="post">
    <input id="tpfk_id" name="tpfk.id" type="hidden" value="${(tpfk.id)!''}"/>
    <input name="tpfk.zt" type="hidden" value="${(tpfk.zt)!''}"/>
            <table style="width:100%" class="tb tab-t">
                <col width="20%"/><col width="23%"/><col width="22.5%"/><col width="34.5%"/>
                <tr>
                    <th style="color:#f45212;">单&nbsp;据&nbsp;&nbsp;号：</th>
                    <td colspan="3"><input name="tpfk.bm" class="input-text-border-zero" readonly="readonly" type="text"
                                           style="width:493px;background-color:#F8F8FF;font-weight: bold" value="${(tpfk.bm)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th style="color:#f45212;">付款类型：</th>
                    <td>
                        <label><input name="tpfk.sfklx" type="radio" value="1" checked="checked" required="true"
                                      style="vertical-align: middle;"/>&nbsp;供应付款</label>
                        <label><input name="tpfk.sfklx" type="radio" value="2" required="true"
                                      <#if (tpfk.sfklx)?? && tpfk.sfklx==2>checked</#if> style="vertical-align: middle;"/>&nbsp;销售退款 </label>
                    </td>
                    <th style="color:#f45212;"> 票据类型：</th>
                    <td>
                        <input idVal="tpfk_pjlx_id" name="tpfk.pjlx.id" class="input-text" type="text"
                               required="true" value="${(tpfk.pjlx.id)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th style="color:#f45212;">
                        <span id="tpfk_gys" style="display: block;">供&nbsp;应&nbsp;&nbsp;商：</span>
                        <span id="tpfk_kh"  style="display: none;">客户名称：</span>
                    </th>
                    <td>
                        <input type="hidden" id="tpdw_id" value="${(tpfk.gldw.id)!}"/>
                        <input type="hidden" id="tpdw_jc" value="${(tpfk.gldw.qc)!}"/>
                        <input id="tpfk_gldw_id" name="tpfk.gldw.id"   type="text" value="${(tpfk.gldw.id)!''}" class="input-text"/>
                    </td>
                    <th style="color:#f45212;">款项类型：</th>
                    <td>
                <span id ="tpfklx3" style="display: none;">
                <label><input name="tpfk.kxlx" type="radio" value="3" checked="checked"
                              style="vertical-align: middle;" />预&nbsp; &nbsp;收&nbsp; &nbsp;款</label>
                </span>
                <span id ="tpfklx4" style="display: none;">
                    <label><input name="tpfk.kxlx" type="radio" value="4"
                                  <#if (tpfk.kxlx)?? && tpfk.kxlx==4>checked</#if> style="vertical-align: middle;"/>应&nbsp; &nbsp;收&nbsp; &nbsp;款 </label>
                </span>
                <span id ="tpfklx1" style="display: inline;" >
                    <label><input name="tpfk.kxlx" type="radio" value="1" checked="checked"
                                  style="vertical-align: middle;" />预&nbsp; &nbsp;付&nbsp; &nbsp;款</label>
                <span>
                <span id ="tpfklx2" style="display: inline;" >
                    <label><input name="tpfk.kxlx" type="radio" value="2"
                                  <#if (tpfk.kxlx)?? && tpfk.kxlx==2>checked</#if> style="vertical-align: middle;"/>应&nbsp; &nbsp;付&nbsp; &nbsp;款 </label>
                 <span>
                    <td>
                </tr>
                <tr>
                    <th style="color:#f45212;">款项用途：</th>
                    <td>
                        <input idVal="tpfk_kxyt_id" name="tpfk.kxyt.id" class="input-text" type="text"
                               required="true" value="${(tpfk.kxyt.id)!'132'}"/>
                    </td>
                    <th>申报公司：</th>
                    <td>
                        <#--<input id="tpfk_sbgs_id" name="tpfk.sbgs.id" type="text" class="input-text"-->
                               <#--value="<#if tpfk??>${(tpfk.sbgs.id)!}<#else>${(zggsId)!}</#if>"/>-->
                        <input id="tpfk_sbgs_id"  type="hidden" name="tpfk.sbgs.id" class=" input-text" value="${(tpfk.sbgs.id)!}"
                                >
                        <input type="text"  class=" input-text" value="${(tpfk.sbgs.jc)!} " readonly="readonly"
                                >
                    </td>
                </tr>
                <tr>
                    <th>申报部门：</th>
                    <td>
                        <#--<input type="hidden" id="tpfk_sbbm"-->
                               <#--value="<#if tpfk??>${(tpfk.sbbm.id)!}<#elseif gsId!=zggsId>${(gsId)!}</#if>"/>-->
                        <#--<input id="tpfk_sbbm_id" name="tpfk.sbbm.id" type="text" class="easyui-combobox input-text"-->
                               <#--data-options="valueField:'id',textField:'jc'" value=""/>-->
                        <input type="hidden" name="tpfk.sbbm.id" class=" input-text" value="${(tpfk.sbbm.id)!}"
                                >
                        <input type="text"  class=" input-text" value="${(tpfk.sbbm.jc)!}"
                               readonly="readonly" >
                    </td>
                    <th>申&nbsp;报&nbsp;&nbsp;人：</th>
                    <td>
                        <#--<input type="hidden" id="tpfk_sbr"-->
                               <#--value="<#if tpfk??>${(tpfk.sbr.id)!}<#else>${(yg.id)!}</#if>"/>-->
                        <#--<input id="tpfk_sbr_id" name="tpfk.sbr.id" type="text" class="easyui-combobox input-text"-->
                               <#--data-options="valueField:'id',textField:'xm'" value=""/>-->
                            <input type="hidden" name="tpfk.sbr.id" class=" input-text" value="${(tpfk.sbr.id)!}"
                                    >
                            <input type="text"  class=" input-text" value="${(tpfk.sbr.xm)!}"
                                   readonly="readonly" >
                    </td>
                </tr>
                <tr>
                    <th>付款金额：</th>
                    <td><input id="tpfk_sfje" name="sfje" type="text"  class=" input-text"
                               required="true"    value="${(tpfk.sfje?string("0.00"))!''}"/></td>
                    <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                    <td>
                        <input type="text"  class=" input-text" value="${(tpfk.bz)!''}"
                                >
                    </td>
                </tr>
            </table>
</form>

